<?php class Controller_Admin_Module_News_Delete extends ypAdminController {	public function Index() {		$this->checkLogin();		$postId = intval($this->Request->GET['id']);		if ($postId == 0) {			$this->redirect($this->Link->build('Admin/Module/News/Newpost'));		}		if ($this->Request->REQUEST['submit']) {			$this->Loader->model('Admin/Module/News/Delete');			$this->Model_Admin_Module_News_Delete->deletePost($postId);		} else {			// Xac nhan xoa		}		$this->set('redirect_to', $this->Link->build('Admin/Module/News/Listpost'));		$this->setTemplate('module/Module/News/Progress.php');		$this->Response->setOutput($this->render());	}}